home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / editors / emacs / emacs19.ter < prev    next >
Encoding:
Text File  |  1993-11-03  |  2.7 KB  |  94 lines

  1. *** oldprocess.c    Wed Nov  3 08:05:33 1993
  2. --- process.c    Sun Oct 24 14:30:34 1993
  3. ***************
  4. *** 46,51 ****
  5. --- 46,55 ----
  6.   #include <arpa/inet.h>
  7.   #endif /* HAVE_SOCKETS */
  8.   
  9. + #ifdef TERM /* TERM support */
  10. + #include <client.h>
  11. + #endif
  12.   #if defined(BSD) || defined(STRIDE)
  13.   #include <sys/ioctl.h>
  14.   #if !defined (O_NDELAY) && defined (HAVE_PTYS) && !defined(USG5)
  15. ***************
  16. *** 1388,1393 ****
  17. --- 1392,1398 ----
  18.         port = svc_info->s_port;
  19.       }
  20.   
  21. + #ifndef TERM /* If not using term, use gethostbyname, etc */
  22.     host_info_ptr = gethostbyname (XSTRING (host)->data);
  23.     if (host_info_ptr == 0)
  24.       /* Attempt to interpret host as numeric inet address */
  25. ***************
  26. *** 1432,1438 ****
  27.         report_file_error ("connection failed",
  28.                Fcons (host, Fcons (name, Qnil)));
  29.       }
  30.     inch = s;
  31.     outch = dup (s);
  32.     if (outch < 0) 
  33. --- 1437,1449 ----
  34.         report_file_error ("connection failed",
  35.                Fcons (host, Fcons (name, Qnil)));
  36.       }
  37. ! #else /* Using TERM */
  38. !   if ((s = connect_server(0)) < 0) {
  39. !     report_file_error ("error creating socket", Fcons (name, Qnil));
  40. !   }
  41. !   send_command(s,C_PORT,0,"%s:%d",XSTRING (host)->data,ntohs(port));
  42. !   send_command(s,C_DUMB,1,0);
  43. ! #endif /* TERM */
  44.     inch = s;
  45.     outch = dup (s);
  46.     if (outch < 0) 
  47. *** oldlinux.h    Wed Nov  3 08:14:26 1993
  48. --- linux.h    Sun Oct 24 14:07:22 1993
  49. ***************
  50. *** 208,221 ****
  51.   #endif
  52.   
  53.   /* Work around a bug in glibc with _longjmp. */
  54. ! #define C_SWITCH_SYSTEM -D_BSD_SOURCE
  55.   
  56.   /* Let's try this out, just in case.
  57.      Nah.  Rik Faith <faith@cs.unc.edu> says it doesn't work well.  */
  58.   /* #define SIGNALS_VIA_CHARACTERS */
  59.   
  60.   /* Rob Malouf <malouf@csli.stanford.edu> says:
  61.      SYSV IPC is standard a standard part of Linux since version 0.99pl10,
  62.      and is a very common addition to previous versions.  */
  63. ! #define LIBS_MACHINE -lipc
  64.   #define HAVE_SYSVIPC
  65. --- 208,233 ----
  66.   #endif
  67.   
  68.   /* Work around a bug in glibc with _longjmp. */
  69. ! /* Moved within TERM defines... */
  70. ! /* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */
  71.   
  72.   /* Let's try this out, just in case.
  73.      Nah.  Rik Faith <faith@cs.unc.edu> says it doesn't work well.  */
  74.   /* #define SIGNALS_VIA_CHARACTERS */
  75.   
  76. + /* William Perry's <wmperry@indiana.edu> patches to use term for
  77. +    emacs' open-network-stream primitive */
  78. + #define TERM
  79.   /* Rob Malouf <malouf@csli.stanford.edu> says:
  80.      SYSV IPC is standard a standard part of Linux since version 0.99pl10,
  81.      and is a very common addition to previous versions.  */
  82. ! #ifdef TERM
  83. ! #define LIBS_MACHINE -lclient
  84. ! #define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term
  85. ! #else
  86. ! #define LIBS_MACHINE
  87. ! #define c_SWITCH_SYSTEM -D_BSD_SOURCE
  88. ! #endif
  89.   #define HAVE_SYSVIPC
  90.